package com.bolun998300.personal_blog_springboot.es;

import com.bolun998300.personal_blog_springboot.pojo.Blog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.core.query.SearchQuery;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface BlogEsDao extends ElasticsearchRepository<Blog,Integer> {
    Page<Blog> findByIsDeleteOrderByCreateTimeDesc(boolean isDelete, Pageable pageable,SearchQuery searchQuery);
}
